<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php if($meta_title != ''): echo ($meta_title); ?>-<?php endif; echo C('website.title');?></title>
<meta name="keywords" content="<?php echo C('website.keywords');?>"/>
<meta name="description" content="<?php echo C('website.desc');?>"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/public/Home/dist/css/zui.css">
<link rel="stylesheet" href="/public/Home/dist/css/zui-theme.css">
<link rel="stylesheet" href="/public/Home/common/css/style.css">
<script type="text/javascript" src="/public/Home/dist/lib/jquery/jquery.js"></script>
<script type="text/javascript" src="/public/Home/dist/js/zui.js"></script>
<script type="text/javascript" src="/public/Home/dist/lib/layer/layer.js"></script>
<link rel="stylesheet" type="text/css" href="/public/Home/assets/css/simditor.css" />
<script type="text/javascript" src="/public/Home/assets/js/module.min.js"></script>
<script type="text/javascript" src="/public/Home/assets/js/hotkeys.min.js"></script>
<script type="text/javascript" src="/public/Home/assets/js/uploader.min.js"></script>
<script type="text/javascript" src="/public/Home/assets/js/simditor.min.js"></script>


</head>
<body>
<div class="header-index-fix"></div>
<div class="header">
    <div class="container-fixed">
        <div class="header-left">
            <a href="#"><img src="<?php echo getImgidpath(C('website.logo'));?>" alt=""></a>
        </div>
        <div class="header-right">
            <ul class="header-nav">
                <li <?php if($mark == 'index'): ?>class="active"<?php endif; ?>>
                    <a href="<?php echo U('index/index');?>">项目大厅</a>
                </li>
                <li <?php if($mark == 'rank'): ?>class="active"<?php endif; ?>>
                    <a href="<?php echo U('rank/index');?>">排行榜</a>
                </li>
                <li <?php if($mark == 'article'): ?>class="active"<?php endif; ?>>
                    <a href="<?php echo U('article/index');?>">资讯</a>
                </li>
                <li <?php if($mark == 'company'): ?>class="dropdown dropdown-hover active"<?php else: ?>class="dropdown dropdown-hover"<?php endif; ?>>
                    <a href="#" data-toggle="dropdown">企业服务 <span class="drop-arrow"></span></a>
                    <ul class="dropdown-menu drop-nav">
                        <li>
                            <a href="<?php echo U('bug/index');?>">漏洞认领</a>
                        </li>
                        <li>
                            <a href="<?php echo U('company/index');?>">入驻企业</a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown dropdown-hover">
                    <a href="#" data-toggle="dropdown">白帽服务 <span class="drop-arrow"></span></a>
                    <ul class="dropdown-menu drop-nav">
                        <li>
                            <a href="<?php echo U('index/index');?>">技术知识分享</a>
                        </li>
                        <li>
                            <a href="<?php echo U('index/index');?>">等级与福利</a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a href="<?php echo U('bbs/index');?>">论坛</a>
                </li>
            </ul>
            <div class="header-user">
                <div class="user-btns">
                    <div class="dropdown">
                        <button class="btn btn-primary" type="button" data-toggle="dropdown">提交 <span class="caret"></span></button>
                        <ul class="dropdown-menu pull-right">
                            <li><a href="<?php echo U('bug/post');?>">提交漏洞</a></li>
                            <li class="divider"></li>
                            <li><a href="<?php echo U('project/post');?>">提交项目</a></li>
                        </ul>
                    </div>
                </div>
                <div class="user-login">
                    <?php if($_SESSION['user']== null): ?><a href="<?php echo U('user/login');?>">登录</a>
                    <a href="<?php echo U('user/register');?>">注册</a>
                    <?php else: ?>
                        <a href="<?php echo U('user/member');?>"><?php echo ($_SESSION['user']['username']); ?></a><?php endif; ?>
                </div>
            </div>
        </div>
    </div>
</div>


    <?php if(is_array($article)): $i = 0; $__LIST__ = $article;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><article class="article"  style="margin:0 auto;width:60%;">
            <header>
                <h1 class="text-center"><?php echo ($vo["title"]); ?></h1>
                <dl class="dl-inline">
                    <dt>来源：</dt>
                    <dd><?php echo ($vo["user_id"]); ?></dd>
                    <dt>最后修订：</dt>
                    <dd><?php echo (date("Y年m月d日 H:i:s",$vo["ctime"])); ?></dd>
                    <dt></dt>
                    <dd class="pull-right"><span class="label label-success">HTML</span> <span class="label label-warning">网页设计</span> <span class="label label-info">W3C</span> <span class="label label-danger"><i class="icon-eye-open"></i> 235</span></dd>
                </dl>
                <section class="abstract">
                </section>
            </header>
            <section class="content" style="margin:0 auto;width:98%;">
                <?php echo ($vo["content"]); ?>
            </section>


            <footer>

                <div class="comment">
                    <a href="###" class="avatar">
                        <i class="icon-camera-retro icon-2x"></i>
                    </a>
                    <div class="content">
                        <div class="pull-right text-muted">3 个小时前</div>
                        <div><a href="###"><strong>张士超</strong></a></div>
                        <div class="text">今天玩的真开心！~~~~~~</div>
                        <div class="actions">
                            <a href="##">回复</a>
                        </div>
                    </div>
                    <div class="comments-list">
                        <div class="comment">
                            <a href="###" class="avatar">
                                <i class="icon-user icon-2x"></i>
                            </a>
                            <div class="content">
                                <div class="pull-right text-muted">2 个小时前</div>
                                <div><a href="###"><strong>Catouse</strong></a> <span class="text-muted">回复</span> <a href="###">张士超</a></div>
                                <div class="text">你到底把我家钥匙放哪里了...</div>
                                <div class="actions">
                                    <a href="##">回复</a>
                                    <a href="##">编辑</a>
                                    <a href="##">删除</a>
                                </div>
                            </div>
                            <div class="comments-list">
                                <div class="comment">
                                    <a href="###" class="avatar">
                                        <i class="icon-yinyang icon-2x"></i>
                                    </a>
                                    <div class="content">
                                        <div class="pull-right text-muted">1 个小时前</div>
                                        <div><a href="###"><strong>门口大爷</strong></a> <span class="text-muted">回复</span> <a href="###">Catouse</a></div>
                                        <div class="text">不在我这儿...</div>
                                        <div class="actions">
                                            <a href="##">回复</a>
                                        </div>
                                    </div>
                                </div>
                                <div class="comment">
                                    <a href="###" class="avatar">
                                        <i class="icon-cube-alt icon-2x"></i>
                                    </a>
                                    <div class="content">
                                        <div class="pull-right text-muted">1 个小时前</div>
                                        <div><a href="###"><strong>队长</strong></a> <span class="text-muted">回复</span> <a href="###">Catouse</a></div>
                                        <div class="text">也不在我这儿...</div>
                                        <div class="actions">
                                            <a href="##">回复</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="comment">
                            <a href="###" class="avatar">
                                <i class="icon-heart-empty icon-2x"></i>
                            </a>
                            <div class="content">
                                <div class="pull-right text-muted">30 分钟前</div>
                                <div><a href="###"><strong>华师大第一美女</strong></a> <span class="text-muted">回复</span> <a href="###">张士超</a></div>
                                <div class="text">很开心~~~</div>
                                <div class="actions">
                                    <a href="##">回复</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </footer>

            <div class="panel">
                <div class="panel-heading" style="margin-left:10px;">
                    评论
                </div>
                <div class="panel-body text-center" >
                        <textarea name="" id="" style="width:90%;height:200px;margin-top:30px;">
                        </textarea>
                </div>
                <div class="text-right" style="margin:20px;"><a href="" class="btn btn-primary">提交</a></div>
            </div>
        </article><?php endforeach; endif; else: echo "" ;endif; ?>

<div class="footer">
    <div class="container">
        <div class="footer-list">
            <ul>
                <li><a href="<?php echo U('index/index');?>" target="_blank">项目大厅</a></li>
                <li><a href="<?php echo U('rank/index');?>" target="_blank">排行榜</a></li>
                <li><a href="<?php echo U('user/index');?>" target="_blank">个人主页</a></li>
                <li><a href="#" target="_blank">帮助中心</a></li>
            </ul>
        </div>

        <div class="footer-bom">
        	<div>
        		 <?php echo C('website.recard');?>	<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>  <?php echo C('website.copyright');?>
        	</div>
        </div>
    </div>
</div>


</body>
</html>